home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Panel Editor / PanelEditor.make < prev   
Encoding:
Text File  |  1995-12-08  |  11.2 KB  |  332 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        PanelEditor.make
  3. #
  4. #    Contains:    Makefile for OpenDoc PanelEditor editor
  5. #
  6. #    Written by:    Steve Smith
  7. #
  8. #    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. #
  10.  
  11. #---------------------------------------------------------------------------    
  12. # PROJECT VARIABLES
  13. #---------------------------------------------------------------------------    
  14.  
  15. TargetName = PanelEditor
  16. TargetNameILink = {TargetName} (68k)
  17. TargetNamePPCLink = {TargetName} (PPC)
  18. TargetNameFat = {TargetName} (fat)
  19.  
  20. TargetCreatorType = PLED
  21.  
  22. AdditionalIncludes = -i "{somSourceDir}" -i "{SourceDir}"
  23. AdditionalIDLIncludes = -i "{SourceDir}"
  24.  
  25. #---------------------------------------------------------------------------    
  26. # CFM/PEF Version Numbers
  27. #---------------------------------------------------------------------------    
  28. # For detailed instructions on proper CFM/PEF version numbering, see
  29. # Code Fragment Chapter (pg 3-7), Inside Macintosh: PowerPC System Software
  30. #---------------------------------------------------------------------------    
  31.  
  32. CurrentLibraryVersion =        0x01006003        # 1.0 Beta
  33. LibraryExportsVersion =        0x00000000        # 0.0
  34. LibraryCodeVersion =        0x00000000        # 0.0
  35.  
  36. #---------------------------------------------------------------------------    
  37. # DIRECTORY DEPENDENCIES
  38. #---------------------------------------------------------------------------    
  39.  
  40. "{TargetDir}"  ƒ "{SourceDir}"
  41. "{ObjectsDir}" ƒ "{SourceDir}"
  42. "{ObjectsDir}" ƒ "{somSourceDir}"
  43. "{ObjectsDir}" ƒ "{ODUtilsImplDir}"
  44.  
  45. #---------------------------------------------------------------------------    
  46. # ROOT TARGET
  47. #---------------------------------------------------------------------------    
  48.  
  49. BUILDPPCLINK ƒ ∂
  50.     "{CppPrecompiledHeaders}"            ∂
  51.     "{TargetDir}{TargetNamePPCLink}"    ∂
  52.     "{somSourceDir}som_PanelEditor.exp"
  53.  
  54. BUILDREZ ƒ ∂
  55.     "{ObjectsDir}{TargetName}.PPC.rsrc"    ∂
  56.     "{ObjectsDir}{TargetName}.68k.rsrc"
  57.  
  58. BUILDILINK ƒ ∂
  59.     "{CppPrecompiledHeaders}"            ∂
  60.     "{TargetDir}{TargetNameILink}"        ∂
  61.     "{somSourceDir}som_PanelEditor.exp"
  62.  
  63. BUILDIDL ƒ ∂
  64.     "{somSourceDir}som_PanelEditor.xih"    ∂
  65.     "{somSourceDir}som_PanelEditor.xh"    ∂
  66.     "{somSourceDir}som_PanelEditor.cpp"    ∂
  67.     "{somSourceDir}som_PanelEditor.exp"
  68.     
  69.  
  70. #---------------------------------------------------------------------------    
  71. # FILE LIST VARIABLES
  72. #---------------------------------------------------------------------------    
  73.  
  74. PanelEditorOBJECTS = ∂
  75.     "{ObjectsDir}PanelEditor.cpp.o"            ∂
  76.     "{ObjectsDir}PanelEditorGlobals.cpp.o"    ∂
  77.     "{ObjectsDir}Selection.cpp.o"            ∂
  78.     "{ObjectsDir}UndoPE.cpp.o"                ∂
  79.     "{ObjectsDir}ListItem.cpp.o"            ∂
  80.     "{ObjectsDir}Scrollbar.cpp.o"            ∂
  81.     "{ObjectsDir}FrameInfo.cpp.o"            ∂
  82.     "{ObjectsDir}PanelEditorUtils.cpp.o"    ∂
  83.     "{ObjectsDir}SampleCollections.cpp.o"    ∂
  84.     "{ObjectsDir}Panel.cpp.o"                ∂
  85.     "{ObjectsDir}ScrollingList.cpp.o"        ∂
  86.     "{ObjectsDir}FramePE.cpp.o"                ∂
  87.     "{ObjectsDir}Printer.cpp.o"                ∂
  88.     "{ObjectsDir}PrinterGX.cpp.o"            ∂
  89.     "{ObjectsDir}PrinterQD.cpp.o"            ∂
  90.  
  91. somPanelEditorOBJECTS = ∂
  92.     "{ObjectsDir}som_PanelEditorInit.cpp.o"    ∂
  93.     "{ObjectsDir}som_PanelEditor.cpp.o"        ∂
  94.  
  95. OpenDocUtilityOBJECTS = ∂
  96.     "{ObjectsDir}AltPoint.cpp.o"             ∂
  97.     "{ObjectsDir}AltPoly.cpp.o"             ∂
  98.     "{ObjectsDir}BArray.cpp.o"                 ∂
  99.     "{ObjectsDir}BndNSUtl.cpp.o"             ∂
  100.     "{ObjectsDir}Crawl.cpp.o"                 ∂
  101.     "{ObjectsDir}DlogUtil.cpp.o"             ∂
  102.     "{ObjectsDir}DocUtils.cpp.o"             ∂
  103.     "{ObjectsDir}Except.cpp.o"                 ∂
  104.     "{ObjectsDir}FocusLib.cpp.o"             ∂
  105.     "{ObjectsDir}IText.cpp.o"                 ∂
  106.     "{ObjectsDir}FlipEnd.cpp.o"             ∂
  107.     "{ObjectsDir}ISOStr.cpp.o"                 ∂
  108.     "{ObjectsDir}LinkList.cpp.o"             ∂
  109.     "{ObjectsDir}NmSpcUtl.cpp.o"             ∂
  110.     "{ObjectsDir}ODDebug.cpp.o"             ∂
  111.     "{ObjectsDir}ODMemory.cpp.o"            ∂
  112.     "{ObjectsDir}ODNew.cpp.o"                ∂
  113.     "{ObjectsDir}ODUtils.cpp.o"                ∂
  114.     "{ObjectsDir}PasclStr.cpp.o"            ∂
  115.     "{ObjectsDir}PlfmFile.cpp.o"            ∂
  116.     "{ObjectsDir}StorUtil.cpp.o"            ∂
  117.     "{ObjectsDir}StdTypIO.cpp.o"            ∂
  118.     "{ObjectsDir}TempIter.cpp.o"            ∂
  119.     "{ObjectsDir}TempObj.cpp.o"                ∂
  120.     "{ObjectsDir}UseRsrcM.cpp.o"             ∂
  121.     "{ObjectsDir}WinUtils.cpp.o"             ∂
  122.             
  123. #---------------------------------------------------------------------------    
  124. # DEPENDENCIES
  125. #---------------------------------------------------------------------------    
  126.  
  127. # --- IDL ---
  128.  
  129. "{somSourceDir}"som_PanelEditor.cpp ƒ            ∂
  130.     "{somSourceDir}"som_PanelEditor.idl            ∂
  131.     "{ODIDLIntfDir}"Part.idl
  132.     
  133. "{somSourceDir}"som_PanelEditor.xih ƒ            ∂
  134.     "{somSourceDir}"som_PanelEditor.xh            ∂
  135.     "{somSourceDir}"som_PanelEditor.idl            ∂
  136.     "{ODIDLIntfDir}"Part.idl
  137.     
  138. "{somSourceDir}"som_PanelEditor.xh ƒ            ∂
  139.     "{somSourceDir}"som_PanelEditor.idl            ∂
  140.     "{ODIDLIntfDir}"Part.idl
  141.  
  142. # --- SOURCE ---
  143.  
  144. "{ObjectsDir}PanelEditor.cpp.o"    ƒ                ∂
  145.     "{SourceDir}PanelEditor.cpp"                 ∂
  146.     "{SourceDir}PanelEditor.h"                     ∂
  147.     "{SourceDir}PanelEditorDef.h"                 ∂
  148.     "{SourceDir}PanelEditorUtils.h"
  149.     
  150. "{ObjectsDir}Scrollbar.cpp.o"    ƒ                ∂
  151.     "{SourceDir}Scrollbar.cpp"                     ∂
  152.     "{SourceDir}Scrollbar.h"                     ∂
  153.     "{SourceDir}PanelEditorDef.h"                 ∂
  154.     "{SourceDir}PanelEditorUtils.h"
  155.     
  156. "{ObjectsDir}FrameInfo.cpp.o"    ƒ                ∂
  157.     "{SourceDir}FrameInfo.cpp"                     ∂
  158.     "{SourceDir}FrameInfo.h"                     ∂
  159.     "{SourceDir}PanelEditorDef.h"                 ∂
  160.     "{SourceDir}PanelEditorUtils.h"
  161.     
  162. "{ObjectsDir}PanelEditorGlobals.cpp.o"    ƒ        ∂
  163.     "{SourceDir}PanelEditorGlobals.cpp"         ∂
  164.     "{SourceDir}PanelEditorGlobals.h"             ∂
  165.     "{SourceDir}PanelEditorDef.h"                 ∂
  166.     "{SourceDir}PanelEditorUtils.h"
  167.     
  168. "{ObjectsDir}UndoPE.cpp.o"    ƒ                    ∂
  169.     "{SourceDir}UndoPE.cpp"                     ∂
  170.     "{SourceDir}UndoPE.h"                         ∂
  171.     "{SourceDir}PanelEditorDef.h"                 ∂
  172.     "{SourceDir}PanelEditorUtils.h"
  173.     
  174. "{ObjectsDir}ListItem.cpp.o"    ƒ                ∂
  175.     "{SourceDir}ListItem.cpp"                     ∂
  176.     "{SourceDir}ListItem.h"                     ∂
  177.     "{SourceDir}PanelEditorDef.h"                 ∂
  178.     "{SourceDir}PanelEditorUtils.h"
  179.     
  180. "{ObjectsDir}Panel.cpp.o"    ƒ                    ∂
  181.     "{SourceDir}Panel.cpp"                         ∂
  182.     "{SourceDir}Panel.h"                         ∂
  183.     "{SourceDir}PanelEditorDef.h"                 ∂
  184.     "{SourceDir}PanelEditorUtils.h"
  185.     
  186. "{ObjectsDir}Selection.cpp.o"    ƒ                ∂
  187.     "{SourceDir}Selection.cpp"                     ∂
  188.     "{SourceDir}Selection.h"                     ∂
  189.     "{SourceDir}PanelEditorDef.h"                 ∂
  190.     "{SourceDir}PanelEditorUtils.h"
  191.     
  192. "{ObjectsDir}PanelEditorUtils.cpp.o"    ƒ        ∂
  193.     "{SourceDir}PanelEditorUtils.cpp"            ∂
  194.     "{SourceDir}PanelEditorUtils.h"
  195.  
  196. "{ObjectsDir}SampleCollections.cpp.o"    ƒ        ∂
  197.     "{SourceDir}SampleCollections.cpp"            ∂
  198.     "{SourceDir}SampleCollections.h"
  199.  
  200. # --- SOM OBJECTS ---
  201.  
  202. "{ObjectsDir}som_PanelEditor.cpp.o"    ƒ            ∂
  203.     "{somSourceDir}som_PanelEditor.cpp"            ∂
  204.     "{somSourceDir}som_PanelEditor.xih"
  205.  
  206. "{ObjectsDir}som_PanelEditorInit.cpp.o"    ƒ        ∂
  207.     "{somSourceDir}som_PanelEditorInit.cpp"        ∂
  208.     "{somSourceDir}som_PanelEditor.xh"
  209.  
  210.  
  211. #---------------------------------------------------------------------------    
  212. # BUILD LIBRARIES
  213. #---------------------------------------------------------------------------    
  214.  
  215. # --- 68k Link ---
  216.  
  217. "{TargetDir}{TargetNameILink}"    ƒƒ                                ∂
  218.                                 {PanelEditorOBJECTS}            ∂
  219.                                 {somPanelEditorOBJECTS}            ∂
  220.                                 {OpenDocUtilityOBJECTS}            ∂
  221.                                 "{somSourceDir}som_PanelEditor.exp"
  222.     Echo Linking: {TargetNameILink}
  223.     {LinkTool}    ∂
  224.         -export `ConvertExportList "{somSourceDir}som_PanelEditor.exp"` ∂
  225.         {ILinkOptions}                                                    ∂
  226.         {ILinkShLibOptions}                                                ∂
  227.         -init PanelEditorCFMInit                                        ∂
  228.         -vercur {CurrentLibraryVersion}                                    ∂
  229.         -verdef {LibraryExportsVersion}                                    ∂
  230.         -verimp {LibraryCodeVersion}                                    ∂
  231.         {ShLibPreLibraries}                                                ∂
  232.         {PanelEditorOBJECTS}                                            ∂
  233.         {somPanelEditorOBJECTS}                                            ∂
  234.         {OpenDocUtilityOBJECTS}                                            ∂
  235.         "{ODCFMLibrariesDir}OpenDoc Core.stub"                            ∂
  236.         "{ODCFMLibrariesDir}OpenDoc User Interface.stub"                ∂
  237.         "{ODCFMLibrariesDir}OpenDoc Storage.stub"                        ∂
  238.         "{ODCFMLibrariesDir}OpenDoc Imaging.stub"                        ∂
  239.         "{ODCFMLibrariesDir}OpenDoc Layout.stub"                        ∂
  240.         "{ODCFMLibrariesDir}Memory Manager.stub"                        ∂
  241.         {ShLibPostLibraries}                                            ∂
  242.         -o "{ObjectsDir}{TargetNameILink}".seg
  243.     If !{Status}
  244.         Echo Building: {TargetNameILink}.SYM
  245.         {SymTool} "{ObjectsDir}{TargetNameILink}".seg.NJ ∂
  246.             -o "{TargetDir}{TargetNameILink}".SYM -sym 3.2
  247.         Echo Building: {TargetNameILink}∂'s code∂/data fragment
  248.         MakeFlat "{ObjectsDir}{TargetNameILink}".seg -o "{TargetDir}{TargetNameILink}"
  249.         Echo Copying: {TargetNameILink}∂'s resources
  250.         Echo "include ∂"{RsrcObjectsDir}{TargetName}.68k.rsrc∂";" | Rez -a -o "{TargetDir}{TargetNameILink}"
  251.         Echo "delete 'ckid';"  | Rez -a -o "{TargetDir}{TargetNameILink}"
  252.         SetFile -a Bi -c "{TargetCreatorType}" {Targ}
  253.     End
  254.  
  255. # --- PowerPC Link ---
  256.  
  257. "{TargetDir}{TargetNamePPCLink}"    ƒƒ                            ∂
  258.                                     {PanelEditorOBJECTS}        ∂
  259.                                     {somPanelEditorOBJECTS}        ∂
  260.                                     {OpenDocUtilityOBJECTS}        ∂
  261.                                     "{somSourceDir}som_PanelEditor.exp"
  262.     Echo Linking: {TargetNamePPCLink}
  263.     {LinkTool}    ∂
  264.         -export `ConvertExportList "{somSourceDir}som_PanelEditor.exp"` ∂
  265.         {PPCLinkOptions}                                    ∂
  266.         {PPCLinkShLibOptions}                                ∂
  267.         -init PanelEditorCFMInit                            ∂
  268.         -verCur {CurrentLibraryVersion}                        ∂
  269.         -verDef {LibraryExportsVersion}                        ∂
  270.         -verImp {LibraryCodeVersion}                        ∂
  271.         {PPCShLibPreLibraries}                                ∂
  272.         {PanelEditorOBJECTS}                                ∂
  273.         {somPanelEditorOBJECTS}                                ∂
  274.         {OpenDocUtilityOBJECTS}                                ∂
  275.         "{ODCFMLibrariesDir}OpenDoc Core.stub"                ∂
  276.         "{ODCFMLibrariesDir}OpenDoc User Interface.stub"    ∂
  277.         "{ODCFMLibrariesDir}OpenDoc Storage.stub"            ∂
  278.         "{ODCFMLibrariesDir}OpenDoc Imaging.stub"            ∂
  279.         "{ODCFMLibrariesDir}OpenDoc Layout.stub"            ∂
  280.         "{ODCFMLibrariesDir}Memory Manager.stub"            ∂
  281.         {PPCShLibPostLibraries}                                ∂
  282.         -o "{ObjectsDir}{TargetNamePPCLink}"
  283.     If !{Status}
  284.         Move -y "{ObjectsDir}{TargetNamePPCLink}" "{TargetDir}"
  285.         Echo Building: {TargetNamePPCLink}.xSYM
  286.         {SymTool} "{ObjectsDir}{TargetNamePPCLink}".xcoff                ∂
  287.                 {AdditionalIncludes} -i "{ODUtilsImplDir}"            ∂
  288.                 -sym on,3.2 -o "{TargetDir}{TargetNamePPCLink}".xSYM
  289.         Echo Copying: {TargetNamePPCLink}∂'s resources
  290.         Echo "include ∂"{RsrcObjectsDir}{TargetName}.PPC.rsrc∂";" | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
  291.         Echo "delete 'ckid';"  | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
  292.         SetFile -a Bi -c "{TargetCreatorType}" {Targ}
  293.     End
  294.  
  295.  
  296. #---------------------------------------------------------------------------    
  297. # REZ STEPS
  298. #---------------------------------------------------------------------------    
  299.  
  300. "{ObjectsDir}"PanelEditor.PPC.rsrc    ƒ ∂
  301.                                     "{SourceDir}"PanelEditor.r        ∂
  302.                                     "{SourceDir}PanelEditorDef.h"    ∂
  303.                                     "{SourceDir}PanelEditorVers.h"    ∂
  304.                                     "{SourceDir}PanelEditorOtherResources.rsrc" ∂
  305.                                     "{SourceDir}PrintManager.rsrc"
  306.     Echo Rezzing: {TargetName}.r (for PPC)
  307.     Rez {RezOptions} {ODRezIntf} "{SourceDir}"PanelEditor.r -o {targ}
  308.     Rez -a "{SourceDir}PrintManager.rsrc" -o {Targ}
  309.     Echo "delete 'ckid';"  | Rez -a -o {Targ}
  310.     SetFile -a i -c "{ResEditCreator}" -t "{ResEditFileType}" {Targ}
  311.     if ( `exists "{TargetDir}{TargetNamePPCLink}" != ""` )
  312.         Echo Copying: {TargetNamePPCLink}∂'s resources
  313.         Echo "include ∂""{Targ}"∂";" | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
  314.     end    
  315.  
  316. "{ObjectsDir}"PanelEditor.68k.rsrc    ƒ ∂
  317.                                     "{SourceDir}"PanelEditor.r        ∂
  318.                                     "{SourceDir}PanelEditorDef.h"    ∂
  319.                                     "{SourceDir}PanelEditorVers.h"    ∂
  320.                                     "{SourceDir}PanelEditorOtherResources.rsrc" ∂
  321.                                     "{SourceDir}PrintManager.rsrc"
  322.     Echo Rezzing: {TargetName}.r (for 68k)
  323.     Rez -d _68KBUILD_ {RezOptions} {ODRezIntf} "{SourceDir}"PanelEditor.r -o {targ}
  324.     Rez -a "{SourceDir}PrintManager.rsrc" -o {Targ}
  325.     Echo "delete 'ckid';"  | Rez -a -o {Targ}
  326.     SetFile -a i -c "{ResEditCreator}" -t "{ResEditFileType}" {Targ}
  327.     if ( `exists "{TargetDir}{TargetNameILink}" != ""` )
  328.         Echo Copying: {TargetNameILink}∂'s resources
  329.         Echo "include ∂""{Targ}"∂";" | Rez -a -o "{TargetDir}{TargetNameILink}"
  330.     end
  331.  
  332.